package com.sxj.PDMS.mapper;


import com.sxj.PDMS.model.entity.ListOfProbationaryPartyApplicationInformation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sxj.PDMS.model.vo.ListOfProbationaryPartyApplicationInformationVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.sql.Date;
import java.util.List;

/**
* @author 503c'j
* @description 针对表【list_of_probationary_party_application_information(预备党员申请信息列表)】的数据库操作Mapper
* @createDate 2024-06-14 17:08:05
* @Entity com.sxj.PDMS.model.entity.ListOfProbationaryPartyApplicationInformation
*/
public interface ListOfProbationaryPartyApplicationInformationMapper extends BaseMapper<ListOfProbationaryPartyApplicationInformation> {

    public Long selectTotal();

    /**
     * 查询所有数据,分页展示
     *
     * @param start
     * @param pageSize
     * @return
     */
    public List<ListOfProbationaryPartyApplicationInformationVO> selectAll(@Param("start") Integer start, @Param("pageSize") Integer pageSize);

    public List<ListOfProbationaryPartyApplicationInformationVO> selectByNumberOrName(@Param("start") Integer start,
                                                                                    @Param("pageSize") Integer pageSize,
                                                                                    @Param("studentNumber") String studentNumber,
                                                                                    @Param("name") String name);
    public Long selectTotalByNumberOrName(@Param("studentNumber") String studentNumber,
                                          @Param("name") String name);

    List<ListOfProbationaryPartyApplicationInformationVO> selectAllStudentAndDownload(@Param("studentNumber") String studentNumber,
                                                                                      @Param("name") String name);
}




